﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using PROJECT_BOMBER.BLL;
using NUnit.Framework;


namespace PROJECT_BOMBER.TEST
{
    /// <summary>
    ///  Test of the class Level
    /// </summary>
    [TestFixture]
    public class Test_Level : Microsoft.Xna.Framework.Game
    {
        [SetUp]
        public void SetUp()
        {  
            Level level = new Level();
        }

        /// <summary>
        /// Je teste la méthode d'ajout d'images dans mon level
        /// </summary>
        [Test]
        public void Test_AddFrame()
        {
            AnimationDefinition imglevel = new AnimationDefinition("grotte-background", new Microsoft.Xna.Framework.Point(3000, 2561), new Microsoft.Xna.Framework.Point(1, 1), 10, true);
            Level leveltest = new Level();

           // leveltest.addFrame(imglevel, imglevel, imglevel, this, 1);
          

            //bool result = leveltest.Position.X == 0 && leveltest.Position.Y == -imglevel.FrameSize.Y && leveltest.Width == imglevel.FrameSize.X*2
              //  && leveltest.Height == imglevel.FrameSize.Y;

        //    Assert.IsTrue(result);

        }
    }
}
